<?php
include("includes/dbconnection.php");

$process = $_REQUEST['process'];
$module = $_REQUEST['module'];

switch($module) {
	case 'Classifieds':
		switch($process) {
			case 'listClassiCat':
				$sql = "SELECT * FROM classifieds_subcategory WHERE active_status='1' AND category_id = '".$_REQUEST['category']."'";
				$res = mysql_query($sql) or die(mysql_error());
				$i=1;
				while($data = mysql_fetch_array($res)) {
					echo '<option value="'.$data['id'].'"  >'.stripslashes($data['sub_cat_name']).'</option>';
				}
				break;	
		}
		break;	
	
}
?>